package com.wolf.service.impl;

import com.wolf.pojo.Wl_commodity;
import com.wolf.repository.Wl_commodityMapper;
import com.wolf.service.Wl_commodityService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class Wl_commodityServiceImpl implements Wl_commodityService{

    @Resource
    Wl_commodityMapper wl_commodityMapper;

    @Override
    public int deleteByPrimaryKey(String id) {
        return wl_commodityMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Wl_commodity record) {
        return wl_commodityMapper.insert(record);
    }

    @Override
    public int insertSelective(Wl_commodity record) {
        return wl_commodityMapper.insertSelective(record);
    }

    @Override
    public Wl_commodity selectByPrimaryKey(String id) {
        return wl_commodityMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Wl_commodity record) {
        return wl_commodityMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKeyWithBLOBs(Wl_commodity record) {
        return wl_commodityMapper.updateByPrimaryKeyWithBLOBs(record);
    }

    @Override
    public int updateByPrimaryKey(Wl_commodity record) {
        return wl_commodityMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Wl_commodity> getAll() {
        return wl_commodityMapper.getAll();
    }

    @Override
    public List<Wl_commodity> getByIsProxy() {
        return wl_commodityMapper.getByIsProxy();
    }

    @Override
    public List<Wl_commodity> getByChannel() {
        return wl_commodityMapper.getByChannel();
    }

    @Override
    public List<Wl_commodity> getByStatus() {
        return wl_commodityMapper.getByStatus();
    }

    @Override
    public List<Wl_commodity> fuzzyQuery(Integer status, Integer channel, Integer isproxy, String commodityname, String catename) {
        return wl_commodityMapper.fuzzyQuery(status,channel,isproxy,commodityname,catename);
    }

    @Override
    public int statusUpdata(String id, Integer status) {
        return wl_commodityMapper.statusUpdata(id,status);
    }

    @Override
    public int isproxyUpdata(String id, Integer isproxy) {
        return wl_commodityMapper.isproxyUpdata(id,isproxy);
    }

    @Override
    public List<Wl_commodity> getByName(String name) {
        return wl_commodityMapper.getByName(name);
    }

    @Override
    public List<Wl_commodity> getByCommodityName(String categoryid) {
        return wl_commodityMapper.getByCommodityName(categoryid);
    }


}
